
package com.mu.rai.services;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlType;



/**
 * <p>Java class for analysis complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="analysis">
 *   &lt;complexContent>
 *     &lt;extension base="{http://services.rai.mu.com}namedModelObject">
 *       &lt;sequence>
 *         &lt;element name="analysis_status" type="{http://services.rai.mu.com}analysisStatus"/>
 *         &lt;element name="analyzer_mode" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="attacks" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;choice maxOccurs="unbounded">
 *                     &lt;element name="dos_attack" type="{http://services.rai.mu.com}dosAttack"/>
 *                     &lt;element name="external_attack" type="{http://services.rai.mu.com}externalAttack"/>
 *                     &lt;element name="mutation_attack" type="{http://services.rai.mu.com}mutationAttack"/>
 *                     &lt;element name="published_network_attack" type="{http://services.rai.mu.com}publishedNetworkAttack"/>
 *                   &lt;/choice>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;element name="event_actions" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;choice maxOccurs="unbounded" minOccurs="0">
 *                     &lt;element name="syslog_notifier" type="{http://services.rai.mu.com}syslogNotifier"/>
 *                     &lt;element name="remote_trigger" type="{http://services.rai.mu.com}remoteTrigger"/>
 *                   &lt;/choice>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;element name="monitors" minOccurs="0">
 *           &lt;complexType>
 *             &lt;complexContent>
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 &lt;sequence>
 *                   &lt;choice maxOccurs="unbounded" minOccurs="0">
 *                     &lt;element name="command_monitor" type="{http://services.rai.mu.com}commandMonitor"/>
 *                     &lt;element name="console_monitor" type="{http://services.rai.mu.com}consoleMonitor"/>
 *                     &lt;element name="remote_log_monitor" type="{http://services.rai.mu.com}remoteLogMonitor"/>
 *                     &lt;element name="syslog_monitor" type="{http://services.rai.mu.com}syslogMonitor"/>
 *                   &lt;/choice>
 *                 &lt;/sequence>
 *               &lt;/restriction>
 *             &lt;/complexContent>
 *           &lt;/complexType>
 *         &lt;/element>
 *         &lt;choice>
 *           &lt;element name="passthrough_target" type="{http://services.rai.mu.com}passthroughTarget"/>
 *           &lt;element name="server_target" type="{http://services.rai.mu.com}serverTarget"/>
 *         &lt;/choice>
 *         &lt;element name="testbed" type="{http://services.rai.mu.com}testbed"/>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "analysis", propOrder = {
    "analysisStatus",
    "analyzerMode",
    "attacks",
    "eventActions",
    "monitors",
    "passthroughTarget",
    "serverTarget",
    "testbed"
})
public class Analysis
    extends NamedModelObject
{

    @XmlElement(name = "analysis_status", required = true)
    protected AnalysisStatus analysisStatus;
    @XmlElement(name = "analyzer_mode", required = true)
    protected String analyzerMode;
    protected Analysis.Attacks attacks;
    @XmlElement(name = "event_actions")
    protected Analysis.EventActions eventActions;
    protected Analysis.Monitors monitors;
    @XmlElement(name = "passthrough_target")
    protected PassthroughTarget passthroughTarget;
    @XmlElement(name = "server_target")
    protected ServerTarget serverTarget;
    @XmlElement(required = true)
    protected Testbed testbed;

    /**
     * Gets the value of the analysisStatus property.
     * 
     * @return
     *     possible object is
     *     {@link AnalysisStatus }
     *     
     */
    public AnalysisStatus getAnalysisStatus() {
        return analysisStatus;
    }

    /**
     * Sets the value of the analysisStatus property.
     * 
     * @param value
     *     allowed object is
     *     {@link AnalysisStatus }
     *     
     */
    public void setAnalysisStatus(AnalysisStatus value) {
        this.analysisStatus = value;
    }

    /**
     * Gets the value of the analyzerMode property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getAnalyzerMode() {
        return analyzerMode;
    }

    /**
     * Sets the value of the analyzerMode property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAnalyzerMode(String value) {
        this.analyzerMode = value;
    }

    /**
     * Gets the value of the attacks property.
     * 
     * @return
     *     possible object is
     *     {@link Analysis.Attacks }
     *     
     */
    public Analysis.Attacks getAttacks() {
        return attacks;
    }

    /**
     * Sets the value of the attacks property.
     * 
     * @param value
     *     allowed object is
     *     {@link Analysis.Attacks }
     *     
     */
    public void setAttacks(Analysis.Attacks value) {
        this.attacks = value;
    }

    /**
     * Gets the value of the eventActions property.
     * 
     * @return
     *     possible object is
     *     {@link Analysis.EventActions }
     *     
     */
    public Analysis.EventActions getEventActions() {
        return eventActions;
    }

    /**
     * Sets the value of the eventActions property.
     * 
     * @param value
     *     allowed object is
     *     {@link Analysis.EventActions }
     *     
     */
    public void setEventActions(Analysis.EventActions value) {
        this.eventActions = value;
    }

    /**
     * Gets the value of the monitors property.
     * 
     * @return
     *     possible object is
     *     {@link Analysis.Monitors }
     *     
     */
    public Analysis.Monitors getMonitors() {
        return monitors;
    }

    /**
     * Sets the value of the monitors property.
     * 
     * @param value
     *     allowed object is
     *     {@link Analysis.Monitors }
     *     
     */
    public void setMonitors(Analysis.Monitors value) {
        this.monitors = value;
    }

    /**
     * Gets the value of the passthroughTarget property.
     * 
     * @return
     *     possible object is
     *     {@link PassthroughTarget }
     *     
     */
    public PassthroughTarget getPassthroughTarget() {
        return passthroughTarget;
    }

    /**
     * Sets the value of the passthroughTarget property.
     * 
     * @param value
     *     allowed object is
     *     {@link PassthroughTarget }
     *     
     */
    public void setPassthroughTarget(PassthroughTarget value) {
        this.passthroughTarget = value;
    }

    /**
     * Gets the value of the serverTarget property.
     * 
     * @return
     *     possible object is
     *     {@link ServerTarget }
     *     
     */
    public ServerTarget getServerTarget() {
        return serverTarget;
    }

    /**
     * Sets the value of the serverTarget property.
     * 
     * @param value
     *     allowed object is
     *     {@link ServerTarget }
     *     
     */
    public void setServerTarget(ServerTarget value) {
        this.serverTarget = value;
    }

    /**
     * Gets the value of the testbed property.
     * 
     * @return
     *     possible object is
     *     {@link Testbed }
     *     
     */
    public Testbed getTestbed() {
        return testbed;
    }

    /**
     * Sets the value of the testbed property.
     * 
     * @param value
     *     allowed object is
     *     {@link Testbed }
     *     
     */
    public void setTestbed(Testbed value) {
        this.testbed = value;
    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;choice maxOccurs="unbounded">
     *           &lt;element name="dos_attack" type="{http://services.rai.mu.com}dosAttack"/>
     *           &lt;element name="external_attack" type="{http://services.rai.mu.com}externalAttack"/>
     *           &lt;element name="mutation_attack" type="{http://services.rai.mu.com}mutationAttack"/>
     *           &lt;element name="published_network_attack" type="{http://services.rai.mu.com}publishedNetworkAttack"/>
     *         &lt;/choice>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "dosAttackOrExternalAttackOrMutationAttack"
    })
    public static class Attacks {

        @XmlElements({
            @XmlElement(name = "dos_attack", type = DosAttack.class, nillable = true),
            @XmlElement(name = "published_network_attack", type = PublishedNetworkAttack.class, nillable = true),
            @XmlElement(name = "external_attack", type = ExternalAttack.class, nillable = true),
            @XmlElement(name = "mutation_attack", type = MutationAttack.class, nillable = true)
        })
        protected List<Attack> dosAttackOrExternalAttackOrMutationAttack;

        /**
         * Gets the value of the dosAttackOrExternalAttackOrMutationAttack property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the dosAttackOrExternalAttackOrMutationAttack property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getDosAttackOrExternalAttackOrMutationAttack().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link DosAttack }
         * {@link PublishedNetworkAttack }
         * {@link ExternalAttack }
         * {@link MutationAttack }
         * 
         * 
         */
        public List<Attack> getDosAttackOrExternalAttackOrMutationAttack() {
            if (dosAttackOrExternalAttackOrMutationAttack == null) {
                dosAttackOrExternalAttackOrMutationAttack = new ArrayList<Attack>();
            }
            return this.dosAttackOrExternalAttackOrMutationAttack;
        }

    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;choice maxOccurs="unbounded" minOccurs="0">
     *           &lt;element name="syslog_notifier" type="{http://services.rai.mu.com}syslogNotifier"/>
     *           &lt;element name="remote_trigger" type="{http://services.rai.mu.com}remoteTrigger"/>
     *         &lt;/choice>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "syslogNotifierOrRemoteTrigger"
    })
    public static class EventActions {

        @XmlElements({
            @XmlElement(name = "syslog_notifier", type = SyslogNotifier.class, nillable = true),
            @XmlElement(name = "remote_trigger", type = RemoteTrigger.class, nillable = true)
        })
        protected List<EventAction> syslogNotifierOrRemoteTrigger;

        /**
         * Gets the value of the syslogNotifierOrRemoteTrigger property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the syslogNotifierOrRemoteTrigger property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getSyslogNotifierOrRemoteTrigger().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link SyslogNotifier }
         * {@link RemoteTrigger }
         * 
         * 
         */
        public List<EventAction> getSyslogNotifierOrRemoteTrigger() {
            if (syslogNotifierOrRemoteTrigger == null) {
                syslogNotifierOrRemoteTrigger = new ArrayList<EventAction>();
            }
            return this.syslogNotifierOrRemoteTrigger;
        }

    }


    /**
     * <p>Java class for anonymous complex type.
     * 
     * <p>The following schema fragment specifies the expected content contained within this class.
     * 
     * <pre>
     * &lt;complexType>
     *   &lt;complexContent>
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       &lt;sequence>
     *         &lt;choice maxOccurs="unbounded" minOccurs="0">
     *           &lt;element name="command_monitor" type="{http://services.rai.mu.com}commandMonitor"/>
     *           &lt;element name="console_monitor" type="{http://services.rai.mu.com}consoleMonitor"/>
     *           &lt;element name="remote_log_monitor" type="{http://services.rai.mu.com}remoteLogMonitor"/>
     *           &lt;element name="syslog_monitor" type="{http://services.rai.mu.com}syslogMonitor"/>
     *         &lt;/choice>
     *       &lt;/sequence>
     *     &lt;/restriction>
     *   &lt;/complexContent>
     * &lt;/complexType>
     * </pre>
     * 
     * 
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "commandMonitorOrConsoleMonitorOrRemoteLogMonitor"
    })
    public static class Monitors {

        @XmlElements({
            @XmlElement(name = "remote_log_monitor", type = RemoteLogMonitor.class, nillable = true),
            @XmlElement(name = "syslog_monitor", type = SyslogMonitor.class, nillable = true),
            @XmlElement(name = "console_monitor", type = ConsoleMonitor.class, nillable = true),
            @XmlElement(name = "command_monitor", type = CommandMonitor.class, nillable = true)
        })
        protected List<Monitor> commandMonitorOrConsoleMonitorOrRemoteLogMonitor;

        /**
         * Gets the value of the commandMonitorOrConsoleMonitorOrRemoteLogMonitor property.
         * 
         * <p>
         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a <CODE>set</CODE> method for the commandMonitorOrConsoleMonitorOrRemoteLogMonitor property.
         * 
         * <p>
         * For example, to add a new item, do as follows:
         * <pre>
         *    getCommandMonitorOrConsoleMonitorOrRemoteLogMonitor().add(newItem);
         * </pre>
         * 
         * 
         * <p>
         * Objects of the following type(s) are allowed in the list
         * {@link RemoteLogMonitor }
         * {@link SyslogMonitor }
         * {@link ConsoleMonitor }
         * {@link CommandMonitor }
         * 
         * 
         */
        public List<Monitor> getCommandMonitorOrConsoleMonitorOrRemoteLogMonitor() {
            if (commandMonitorOrConsoleMonitorOrRemoteLogMonitor == null) {
                commandMonitorOrConsoleMonitorOrRemoteLogMonitor = new ArrayList<Monitor>();
            }
            return this.commandMonitorOrConsoleMonitorOrRemoteLogMonitor;
        }

    }

}
